﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="AddNewSlider.aspx.vb" Inherits="Arwani.Backend_AddNewSlider" %>

<%@ Register src="Menu.ascx" tagname="Menu" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title> Arwani Backend Panel</title>
    <script src="../js/jquery.min.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function postSortOrder(sortOrder, tableName, whereID, valueID) {
            $('#div_result').html('<input  type="image" src="../images/loading.gif" />');
            $.post("UpdateSortOrder.aspx", { sortOrder: sortOrder, tableName: tableName, whereID: whereID, valueID: valueID }, function (data) {
                $('#div_result').html(data);
            });
        }
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="0" cellpadding="3" cellspacing="3" width="100%">
            <tr>
                <td align="center">
                    
                     
                    <uc1:Menu ID="Menu1" runat="server" />
                    
                     
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table border="0" cellpadding="3" cellspacing="3">
                    <tr><td><table cellpadding="3" cellspacing="3" class="style1">
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Label ID="lblBrandHead" runat="server" Text="Slider Information"></asp:Label>
                            </td>
                        </tr>
                        <tr id="rowTitle" runat="server" visible="false">
                            <td align="left">
                                <asp:Label ID="lbltitle" runat="server" Text="Title"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTitle" runat="server" Width="463px" CssClass="form-control"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="lblsortorder" runat="server" Text="Sort Order"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtsortorder" runat="server" Width="356px" CssClass="form-control"
                                    ></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="lblBrand4" runat="server" Text="Image"></asp:Label>
                            </td>
                            <td align="left">
                                <input id="fileImage" runat="server" type="file" /></td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                <asp:Button ID="btnSave" runat="server" Text="Save" />
&nbsp;<asp:Button ID="cmdBack" runat="server" Text="Back" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table></td></tr>
                    
            <tr>
            <td align="center"><div id="div_result" style="color:Red"></div></td>
            </tr>
                    <tr><td><asp:DataList ID="dtSliderImages" Width="500" runat="server" RepeatColumns="3"  DataKeyField="id"  CssClass="table">
                                    <ItemTemplate>
                                        <table border="0" cellpadding="2" cellspacing="2">
                                            <tr>
                                                <td align="center">
                                                    <asp:Image ID="imgSlider" ImageUrl='<%#getImage(DataBinder.Eval(Container.DataItem,"banner")) %>' Width="100"  runat="server" />
                                                    <br /><br />
                                                    <asp:TextBox Width="45px" MaxLength="4" ID="txtSortOrder" runat="server" text='<%#DataBinder.Eval(Container.DataItem,"sortorder") %>' ></asp:TextBox>
                                                </td>
                                            </tr>
                                            
                                            
                                            <tr>
                                                <td align="center">
                                                    <asp:LinkButton CommandArgument='<%#DataBinder.Eval(Container.DataItem,"id") %>' ID="lnkDelete" runat="server" Text="Delete" CommandName="Delete" ></asp:LinkButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                </asp:DataList></td></tr>
                    </table>
                    
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
